Fix event->button.y_root when using mouse buttons and dnd canceled
authorMaks Naumov <maksqwe1@ukr.net>
Sun, 11 Jan 2015 22:54:27 +0000 (14:54 -0800)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 17 Jan 2015 21:29:17 +0000 (16:29 -0500)
Signed-off-by: Maks Naumov <maksqwe1@ukr.net>
https://bugzilla.gnome.org/show_bug.cgi?id=742785

gdk/wayland/gdkdnd-wayland.c

index 141434d6e7984e855601184720a067fec9f1f4ef..39914c5a75986034920677821f0749984a672bd5 100644 (file)
@@ -497,7 +497,7 @@ gdk_wayland_drag_context_undo_grab (GdkDragContext *context)
       event->button.button = button;
       event->button.time = GDK_CURRENT_TIME;
       event->button.x = event->button.x_root = x;
-      event->button.y = event->button.x_root = y;
+      event->button.y = event->button.y_root = y;
     }
   else
     return;